#include <ast/ast.h>

namespace ast {
  void NodeGlobalDecl::dot_string(std::string & str) {
    str = std::string("GlobalDecl") + R"(\n)"
      + "type:" + static_cast<std::string>(magic_enum::enum_name(this->type));
  }

  void NodeGlobalDecl::dot_accept(AstDot & ast_dot) {
    ast_dot.visit(*this);
  }

  void NodeGlobalDecl::accept(ir::Visitor & visitor) {
    visitor.visit(*this);
  }
}
